package com.rybbaby.tss.front.tssMemberAddSubtractRecord.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author 雷春琼
 * @description 会员加减课时记录表
 * @createDate 2017-08-09 下午11:59:34
 */
@Entity
@Table(name = "tss_member_add_subtract_record")
@DynamicUpdate(true)
@DynamicInsert(true)
public class TssMemberAddSubtractRecord implements Serializable {

    private static final long serialVersionUID = 53721907509094L;

    /**
     * 主键
     **/
    private String id;
    /**
     * 加减课时类型 1加  2减
     */
    private Integer addSubtractType;
    /**
     * 会员课时包Id
     **/
    private String memberPackageId;

    /**
     * 课时类型
     */
    private Integer classHourType;

    /**
     * 课时数/课次
     **/
    private Integer classHour;
    /**
     * 所属老师
     */
    private String empAdminUserId;

    /** 当前创建人  **/
    private String adminUserId;
    /**
     * 上课时间
     */
    private java.sql.Timestamp classTime;
    /**
     * 上课班级
     */
    private String classId;

    /**
     * 备注
     **/
    private String remark;
    /**
     * 创建时间
     **/
    private java.sql.Timestamp createTime;
    /**
     * 版本
     **/
    private Integer version;

    /**
     * 方法: 取得主键
     *
     * @return java.lang.String 主键
     */
    @Id
    @GeneratedValue(generator = "tss_member_add_subtract_recordIDGenerator", strategy = GenerationType.AUTO)
    @GenericGenerator(name = "tss_member_add_subtract_recordIDGenerator", strategy = "uuid")
    @Column(name = "id", nullable = false, length = 32)
    public String getId() {
        return this.id;
    }

    /**
     * 方法: 设置主键
     *
     * @param id 主键
     */
    public void setId(String id) {
        this.id = id;
    }


    /**
     * 方法: 取得会员课时包Id
     *
     * @return java.lang.String 会员课时包Id
     */
    @Column(name = "memberPackageId", nullable = true, length = 32)
    public String getMemberPackageId() {
        return this.memberPackageId;
    }

    /**
     * 方法: 设置会员课时包Id
     *
     * @param memberPackageId 会员课时包Id
     */
    public void setMemberPackageId(String memberPackageId) {
        this.memberPackageId = memberPackageId;
    }

    /**
     * 方法: 取得备注
     *
     * @return java.lang.String 备注
     */
    @Column(name = "remark", nullable = true, length = 500)
    public String getRemark() {
        return this.remark;
    }

    /**
     * 方法: 设置备注
     *
     * @param remark 备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 方法: 取得创建时间
     *
     * @return java.sql.Timestamp 创建时间
     */
    @Column(name = "createTime", nullable = true, length = 19)
    public java.sql.Timestamp getCreateTime() {
        return this.createTime;
    }

    /**
     * 方法: 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(java.sql.Timestamp createTime) {
        this.createTime = createTime;
    }

    /**
     * 方法: 取得版本
     *
     * @return java.lang.Integer 版本
     */
    @Version
    @Column(name = "version", nullable = true, length = 11)
    public Integer getVersion() {
        return this.version;
    }

    /**
     * 方法: 设置版本
     *
     * @param version 版本
     */
    public void setVersion(Integer version) {
        this.version = version;
    }

    @Column(name = "addSubtractType", nullable = true, length = 11)
    public Integer getAddSubtractType() {
        return addSubtractType;
    }

    public void setAddSubtractType(Integer addSubtractType) {
        this.addSubtractType = addSubtractType;
    }

    @Column(name = "classHourType", nullable = true, length = 11)
    public Integer getClassHourType() {
        return classHourType;
    }

    public void setClassHourType(Integer classHourType) {
        this.classHourType = classHourType;
    }
    @Column(name = "classHour", nullable = true, length = 11)
    public Integer getClassHour() {
        return classHour;
    }

    public void setClassHour(Integer classHour) {
        this.classHour = classHour;
    }
    @Column(name = "empAdminUserId", nullable = true, length = 32)
    public String getEmpAdminUserId() {
        return empAdminUserId;
    }

    public void setEmpAdminUserId(String empAdminUserId) {
        this.empAdminUserId = empAdminUserId;
    }
    @Column(name = "classTime", nullable = true, length = 19)
    public java.sql.Timestamp getClassTime() {
        return classTime;
    }

    public void setClassTime(java.sql.Timestamp classTime) {
        this.classTime = classTime;
    }
    @Column(name = "classId", nullable = true, length = 32)
    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    @Column(name = "adminUserId", nullable = true, length = 32)
    public String getAdminUserId() {
        return adminUserId;
    }

    public void setAdminUserId(String adminUserId) {
        this.adminUserId = adminUserId;
    }


}